import request from '@/utils/request'

//预约
export function reservation(data) {
  return request({
    url: 'admin/reservation/treatment/reservation',
    method: 'post',
    data
  })
}

//取消预约
export function cancelReservation(data) {
  return request({
    url: 'admin/reservation/treatment/reservation/cancel',
    method: 'post',
    data
  })
}

//预约记录
export function getReservation(params) {
  return request({
    url: 'admin/reservation/treatment/reservation/list',
    method: 'get',
    params
  })
}

//作废预约
export function delReservation(data) {
  return request({
    url: 'admin/reservation/treatment/reservation/del',
    method: 'post',
    data
  })
}

//添加预约备注
export function descReservation(data) {
  return request({
    url: 'admin/reservation/treatment/reservation/desc',
    method: 'post',
    data
  })
}

//提取计划
export function planReservation(params) {
  return request({
    url: 'admin/reservation/treatment/plan',
    method: 'get',
    params
  })
}

//一键预约
export function allReservation(data) {
  return request({
    url: 'admin/reservation/treatment/reservation/all',
    method: 'post',
    data
  })
}

